def resolution1():
    count = 0
    for i in range(2023, 20232024):
        if str(i).find("1122") != -1:
            print(i)
            count += 1
    print(count)
    pass


if __name__ == '__main__':
    resolution1()